<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'home_top.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	</head>
	<link rel="stylesheet" href="css/nivo-slider.css" type="text/css"
		media="screen" />
	<link rel="stylesheet" href="css/style.css" type="text/css"
		media="screen" />
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"
		media="screen" />
	<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
	<body>
		<div id="container">
			<jsp:include page="head.jsp"></jsp:include>
			<div class="menu1">
			<ul id="menu">
		     	<li>
					<a class="l1" href="home.jsp"></a>
				</li>
				<li>
					<a class="l6" href="AllStationServlet"></a>
				</li>
				<li>
					<a class="l7" href="AllLineServlet"></a>
			</ul>
			</div>
			<div id="center3">
				<a class="btn btn-success" href="addstation.jsp">增加站台</a>
				<a class="btn btn-success" href="AllStationServlet?pageNum=${pageNum-1}">上   页</a>
				<a class="btn btn-success" href="AllStationServlet?pageNum=${pageNum}">${pageNum}</a>
				<a class="btn btn-success" href="AllStationServlet?pageNum=${pageNum+1}">下   页</a>
				<table class=" wsize table table-striped ">

					<tr>
						<th>
							站台号
						</th>
						<th>
							站台名
						</th>
						<th>
							地址
						</th>
						<th>
							查看线路详情
						</th>
						<th>删除/修改</th>
					</tr>
					<c:forEach items="${requestScope.stationslist}" var="station">
						<tr>
							<td>
								${station.stationId}
							</td>
							<td>
								${station.stationName}
							</td>
							<%--<td>
								<c:forEach items="${station.linelist}" var="linelist">
									<a href="getLineServlet?username=${linelist}">${linelist} </a>
								</c:forEach>
							</td>
							--%>
							<td>
								${station.address}
							</td>
							<td>
								<a class="btn btn-info" href="StationDetialServlet?stationName=${station.stationName}">查看详情</a>
							</td>
							<td>
								<a class="btn btn-danger" href="DeleteStationServlet?stationId=${station.stationId}">删除</a>
								<a  class="btn btn-warning" href="updatestation.jsp">修改</a>
							</td>
								
						</tr>
					</c:forEach>
				</table>
			</div>
			<jsp:include page="foot.jsp"></jsp:include>
		</div>
	</body>
</html>